import { createRouter, createWebHistory } from 'vue-router';

const routes = [
    {
        path: '/',
        component: () => import('../views/Home.vue')
    },
    {
        path: '/demo',
        component: () => import('../views/Demo.vue')
    },
    {
        path: '/table',
        component: () => import('../views/Table.vue')
    },
];
const router = createRouter({
    //history: createWebHashHistory(),  // hash路由模式
    history: createWebHistory(),  // history路由模式
    routes
});
export default router;